= error_messages_for 'contest'

- form_for :contest, @contest, :url => {:action => "update"} do |f|
  -@year = @contest.start_time.year
  -@month = @contest.start_time.month
  -@day = @contest.start_time.day
  -@hour = @contest.start_time.hour
  -@minute = @contest.start_time.min  
  -@duration = @contest.duration
  -@type = 1
  =render :partial => 'form', :locals => {:f => f, :edit => true, :submit_text => "edit contest"}

